ModuleInfo "Version: 0.1"
ModuleInfo "Main Author: Cal3d."
ModuleInfo "License: You are free to use this code as you please"
ModuleInfo "Please see readme.txt for more details"
import brl.blitz
import c3d.cal3d
import brl.linkedlist
import brl.socket
import brl.filesystem
import brl.socketstream
import brl.standardio
import brl.retro
CopyFile2%(src$,dst$=$"",callback@*=0,bufsize%=128)="c3d_loader_CopyFile2"
round%(val#)="c3d_loader_round"
DisplayDownloadProgress%(progress#)="c3d_loader_DisplayDownloadProgress"
FileSize2%(url$)="c3d_loader_FileSize2"
inputmode_input%=0
inputmode_file%=1
tsendhttp^Object{
.inputs:TList&
-New%()="_c3d_loader_tsendhttp_New"
-Delete%()="_c3d_loader_tsendhttp_Delete"
+ressolvename%(naddress$)="_c3d_loader_tsendhttp_ressolvename"
-send$&[](nhost$,nport%,npath$)="_c3d_loader_tsendhttp_send"
-addinput:thttpinput(nname$,nvalue$)="_c3d_loader_tsendhttp_addinput"
-addfile:thttpinput(nname$,npath$)="_c3d_loader_tsendhttp_addfile"
}="c3d_loader_tsendhttp"
thttpinput^Object{
.mode%&
.name$&
.filepath$&
.filename$&
.filecontenttype$&
.value$&
-New%()="_c3d_loader_thttpinput_New"
-Delete%()="_c3d_loader_thttpinput_Delete"
}="c3d_loader_thttpinput"
CalLoader^Object{
.loadedobject:Object&
.loaded@&
-New%()="_c3d_loader_CalLoader_New"
-Delete%()="_c3d_loader_CalLoader_Delete"
-Load:Object(data$)="_c3d_loader_CalLoader_Load"
-IsLoaded@()="_c3d_loader_CalLoader_IsLoaded"
-GetLoadedObject:Object()="_c3d_loader_CalLoader_GetLoadedObject"
}="c3d_loader_CalLoader"
CalLoaderHandler^Object{
DATACALSKELETON%=0
DATACALMESH%=1
DATACALANIMATION%=2
DATACALMORPHANIM%=3
DATACALMATERIAL%=4
DATACALIMAGE%=5
.LoaderCallbacks:TList&
-New%()="_c3d_loader_CalLoaderHandler_New"
-Delete%()="_c3d_loader_CalLoaderHandler_Delete"
-LoadFile%(url$,TType%,loader:CalLoader,data$=$"")="_c3d_loader_CalLoaderHandler_LoadFile"
-Update%()="_c3d_loader_CalLoaderHandler_Update"
-IsFileLoaded@(url$)="_c3d_loader_CalLoaderHandler_IsFileLoaded"
-GetLoadedFile:Object(url$,keepinlist@=1)="_c3d_loader_CalLoaderHandler_GetLoadedFile"
}="c3d_loader_CalLoaderHandler"
CalLoadingCallback^Object{
.get_req:tsendhttp&
.post_req:tsendhttp&
.hasheader@&
.headername$&
.headerval$&
.bytesrec%&
.data$&
.finished@&
.datatype%&
.fileurl$&
.loader:CalLoader&
-New%()="_c3d_loader_CalLoadingCallback_New"
-Delete%()="_c3d_loader_CalLoadingCallback_Delete"
-GetLoadedObject:Object()="_c3d_loader_CalLoadingCallback_GetLoadedObject"
-SetLoader%(loadr:CalLoader)="_c3d_loader_CalLoadingCallback_SetLoader"
-GetLoader:CalLoader()="_c3d_loader_CalLoadingCallback_GetLoader"
-SetDataType%(datat%)="_c3d_loader_CalLoadingCallback_SetDataType"
-GetDataType%()="_c3d_loader_CalLoadingCallback_GetDataType"
-IsFinished@()="_c3d_loader_CalLoadingCallback_IsFinished"
-GetData$()="_c3d_loader_CalLoadingCallback_GetData"
-OnHttpRequestComplete%(req:tsendhttp)="_c3d_loader_CalLoadingCallback_OnHttpRequestComplete"
-SetHeader%(name$,value$)="_c3d_loader_CalLoadingCallback_SetHeader"
-RemoveHeader%()="_c3d_loader_CalLoadingCallback_RemoveHeader"
-Update%()="_c3d_loader_CalLoadingCallback_Update"
-Load%(TType%=0,url$,data$=$"",mime$=$"text/plain;charset=utf-8",enc$=$"utf8")="_c3d_loader_CalLoadingCallback_Load"
}="c3d_loader_CalLoadingCallback"
